package com.hehe.conversion.hehemiddleware.common;

import java.util.HashMap;
import java.util.Map;

public class BusinessFieldMapper {
    private static final Map<String, String> fieldMappings;

    static {
        fieldMappings = new HashMap<>();
        fieldMappings.put("imgAddr", "imgAddr");
        fieldMappings.put("imgBase64", "imgBase64");
        fieldMappings.put("type", "identType");
        fieldMappings.put("BizLicenseCreditCode", "CreditCode");
        fieldMappings.put("BizLicenseSerialNumber", "identNum");
        fieldMappings.put("BizLicenseRegistrationAuthority", "BelongOrg");
        fieldMappings.put("BizLicenseCompanyName", "Name");
        fieldMappings.put("BizLicenseRegistrationCode", "RegNo");
        fieldMappings.put("BizLicenseRegCapital", "RegistCapi");
        fieldMappings.put("BizLicensePaidInCapital", "paInCapalAmt");
        fieldMappings.put("BizLicenseIsCopy", "traniptFlag");
        fieldMappings.put("BizLicenseIsElectronic", "wherForEleBsnlic");
        fieldMappings.put("BizLicenseStartTime", "registDt");
        fieldMappings.put("BizLicenseOwnerName", "operor");
        fieldMappings.put("BizLicenseOperatingPeriod", "doBusTerm");
        fieldMappings.put("BizLicenseAddress", "managePlae");
        fieldMappings.put("BizLicenseScope", "Scope");
        fieldMappings.put("BizLicenseRegistrationDate", "rgstDt");
        fieldMappings.put("BizLicenseCompanyType", "type");
        fieldMappings.put("BizLicenseComposingForm", "conuteShape");
        fieldMappings.put("image_angle", "orialPictureTheDefonAngle");
        fieldMappings.put("rotated_image_width", "revolveLaterTheImgWdDege");
        fieldMappings.put("rotated_image_height", "revolveLaterTheImgHght");
    }

    public static String mapField(String rightField) {
        return fieldMappings.get(rightField);
    }
}
